const crypto = require('crypto'); 

function ppy_md5(str){  
  const hash = crypto.createHash('md5');  
  hash.update(str);  
  const md5Hash = hash.digest('hex');  
  return md5Hash.toUpperCase().substr(8, 16);  
}

class User {
  constructor(name='Jim', age='Munich', dob='12.01.1982') {
    this.name = name;
    this.age = age;
    this.dob = dob;
  }

  getUserStats() {
    return `
      Name: ${this.name}
      Age: ${this.age}
      DateOfBirth: ${this.dob}
    `;
  }
}

module.exports = User;
exports.ppy_md5 = ppy_md5;

const str = 'cw/cw123456';
console.log(ppy_md5(str));
let myUser = new User();
console.log(myUser.getUserStats());
